﻿
using Hotel.Common;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Hotel.Domain
{
    public class OrderInfo
    {
        [Key]
        [DatabaseGenerated(DatabaseGeneratedOption.None)]
        public long OrderId { get; set; }

        public long MemberId { get; set; }
        /// <summary>
        /// 会员名称
        /// </summary>
        public string MemberName { get; set; }
        /// <summary>
        /// 性别
        /// </summary>
        public string Sex { get; set; }
        /// <summary>
        /// 电话
        /// </summary>
        public string Tel { get; set; }
        /// <summary>
        /// 身份证
        /// </summary>
        public string IdCard { get; set; }
        /// <summary>
        /// 入住时间
        /// </summary>
        public DateTime CheckinDate { get; set; }
        /// <summary>
        /// 离店时间
        /// </summary>
        public DateTime CheckoutDate { get; set; }
        /// <summary>
        /// 房间类型编号
        /// </summary>
        public int RoomTypeId { get; set; }
        /// <summary>
        /// 房间号
        /// </summary>
        public string RoomCode { get; set; }
        /// <summary>
        /// 备注
        /// </summary>
        public string Remark { get; set; }
        /// <summary>
        /// 总金额
        /// </summary>

        public decimal TotalMoney { get; set; }
        /// <summary>
        /// 是否删除
        /// </summary>
        public int IsDelete { get; set; } = 0;
        public OrderStatusEnum Status { get; set; } = OrderStatusEnum.未支付;
        public DateTime CreateTime { get; set; }=DateTime.Now;
    }
}
